package cii_lib;

public class CiiLibException  extends Exception {

  public enum MSG {TABLE_ERROR, INDEX_ERROR, PARAM_ERROR, ACCESS_ERROR};
  private static final long serialVersionUID = 1L;
  private String ClassName;
  private MSG Action;
  CiiLibException(String cname, MSG action){
    super("CiiLibException \'"+cname+"\' class error: "+action.toString());
    ClassName = cname;
    Action = action;
  }
  public MSG getAction() {
    return(Action);
  }
  public String getClassName() {
    return(ClassName);
  }
  
  public void exitMessage() {
    System.out.printf(this.getMessage()+"\n");
    System.exit(0);
  }
  
}
